import { AxiosRequestConfig, AxiosResponse } from "axios";

export interface KiRequestInterceptors {
  requestSuccessInterceptor: (config: AxiosRequestConfig) => AxiosRequestConfig
  requestErrorInterceptor: (err: any) => any 
  responseSuccessInterceptor:(res:AxiosResponse) => AxiosResponse
  responseErrorInterceptor:(err:any) => any
}

export interface KiRequestConfig extends AxiosRequestConfig{
  interceptors?: KiRequestInterceptors
  isShowLoading?:boolean
}